import request from '@/request'

export function findAll(data) {
    return request.post("fault/findAll",data);
}

export function doSaveOrUpdate(data){
    let path = data.faultId ? "update" : "save";
    return request.post(`fault/${path}`, data);
}

export function dodel(fId) {

    return request.post("fault/delete", fId, request.textConfig);
}

export function findDistributeEmp(bedId){
    return request.post("fault/findDistributeEmp", bedId, request.textConfig);
}

export function doDistribute(data){
    return request.post("fault/distribute", data);
}